package org.ushio.nchu_22201408.service.Impl;

import org.ushio.common_module.entity.CustomerServiceRating;
import org.ushio.nchu_22201408.mapper.CustomerServiceRatingMapper;
import org.ushio.nchu_22201408.service.CustomerServiceRatingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CustomerServiceRatingServiceImpl implements CustomerServiceRatingService {

    private final CustomerServiceRatingMapper customerServiceRatingMapper;

    @Autowired
    public CustomerServiceRatingServiceImpl(CustomerServiceRatingMapper customerServiceRatingMapper) {
        this.customerServiceRatingMapper = customerServiceRatingMapper;
    }

    @Override
    public void createRating(CustomerServiceRating rating) {
        customerServiceRatingMapper.insertCustomerServiceRating(rating);
    }
}
